#!/bin/bash

cd /opt/cloudera/parcel-repo
wget http://45.78.34.91/cm/parcel-repo/CDH-6.2.0-1.cdh6.2.0.p0.967373-el7.parcel
wget http://45.78.34.91/cm/parcel-repo/CDH-6.2.0-1.cdh6.2.0.p0.967373-el7.parcel.sha
wget http://45.78.34.91/cm/parcel-repo/CDH-6.2.0-1.cdh6.2.0.p0.967373-el7.parcel.sha256
wget http://45.78.34.91/cm/parcel-repo/CDH-6.2.0-1.cdh6.2.0.p0.967373-el7.parcel.torrent
wget http://45.78.34.91/cm/parcel-repo/manifest.json
echo "e9c8328d8c370517c958111a3db1a085ebace237">CDH-6.2.0-1.cdh6.2.0.p0.967373-el7.parcel.sha1

cd /root
systemctl start cloudera-scm-server
echo "cloudera-scm-server已经启动，正在打开启动日志..."
echo "如出现 INFO WebServerImpl:com.cloudera.server.cmf.WebServerImpl: Started Jetty server. 则表示启动成功"
sleep 5
tail -f /var/log/cloudera-scm-server/cloudera-scm-server.log
